package com.atguigu.day16.test03;

import java.util.Arrays;

/**
 * @author fenge
 */
public class Test03 {
    public static void main(String[] args) {
        Integer[] i = new Integer[]{1,3,4};
        method(i,0,1);
        System.out.println(Arrays.toString(i));
    }
    public static <T> void method(T[] arr,int a,int b){
        T temp = arr[a];
        arr[a] = arr[b];
        arr[b] = temp;
    }
}
